#ifndef MODELCONTAINER_H_
#define MODELCONTAINER_H_

#include<QAbstractTableModel>
#include<QModelIndex>

#include "../../../../../nemosomen/DataModel/src/nemosomenBase.h"

template<typename type>
class ModelContainer : public QAbstractTableModel
{
private:
	Prop<std::list<type> *> *prop;
	std::list<type> *list;
public:
	ModelContainer(Prop<std::list<type> > *p,QObject *parent=0): QAbstractTableModel(parent) {
		prop = p;
		list = p->get();
	}
	virtual ~ModelContainer();
	int rowCount(const QModelIndex & parent) {
		if (parent->isValid())
			return 0;
		return list->size():
	}
	int columnCount(const QModelIndex & parent) {
		return 3;
	}
	
};

#endif /*MODELCONTAINER_H_*/
